package com.sk.bilibili.controller;

import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

/**
 * @author 邵康
 * @date 2021/11/25 19:33
 */
//@RestController
@Api(tags = "测试使用")
public class SessionController {

    @GetMapping("/test")
    public void test(HttpSession session){
        Object name = session.getAttribute("name");
        System.out.println(name);
        session.setAttribute("name","2222222222222222222223333333333333333333");
    }

}
